package datalay;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class NetworkData {
	private InetAddress addr;
	private int port;
	
	public InetAddress getIPAddress() {
		return addr;
	}
	public void setIPAddress(String addr) throws UnknownHostException {
		this.addr = InetAddress.getByName(addr);
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}

}
